/*
 * @Author: shiguo
 * @Date: 2022-04-20 15:33:30
 * @LastEditors: shiguo
 * @LastEditTime: 2022-04-29 10:54:37
 * @FilePath: /@aks/easyui/lib/WithLoadingContainer/index.ts
 */



import React from 'react'
import { ViewProps, GestureResponderEvent } from 'react-native'


export enum Status {
    NONE = 'NONE',
    LOADING = 'LOADING',
    FAIL = 'FAIL',
    SUCCESS = 'SUCCESS',
    EMPTY = 'EMPTY',
    NOMORE = 'NOMORE',
}

export type WithLoadingContainerProps = {
    status: Status;
    reload: (event: GestureResponderEvent) => void;
    failText: string;
    emptyText: string;
    nomoreText: string;
    renderEmptyComponent: () => React.ReactNode;
    renderFailComponent: () => React.ReactNode;
    renderNomoreComponent: () => React.ReactNode;
} & ViewProps


export declare const WithLoadingContainer: React.FC<Partial<WithLoadingContainerProps>>